package com.tool.spring.client;


import com.tool.spring.manager.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @Author: lixiaofei
 */
@Slf4j
public class Client {


	public static void main(String[] args) {

		BeanFactory factory=new ClassPathXmlApplicationContext("applicationContext.xml");
		//获取userManager实例
		UserManager userManager=(UserManager) factory.getBean("userManager");
		userManager.addUser("lee3","123456");
		log.info("user创建成功!");

	}

}
